#ifndef TIMESERVER_H
#define TIMESERVER_H

#include <QObject>
#include <QWidget>
#include <QTcpServer>
#include "dialog.h"
#include "timethread.h"
class TimeServer : public QTcpServer
{
    Q_OBJECT
public:
    TimeServer(QObject* parent = 0);
protected:
    void incomingConnection(qintptr socketDescriptor) override;
private:
    Dialog* dlg;
};

#endif // TIMESERVER_H
